//
//  HNSH_LoginInputView.h
//  HNSH_SingleProject
//
//  Created by 李宇廷 on 2023/2/22.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN
typedef void(^HNSH_LoginInputFieldBlock)(NSString *inputString);
typedef void(^HNSH_LoginInputButtonBlock)(UIButton *sendButton);
@interface HNSH_LoginInputView : UIView

- (instancetype)initWithFrame:(CGRect)frame type:(NSInteger)type;

/* type 0 : 其他  1 : 手机号  2 : 验证码 */
@property (nonatomic, assign) NSInteger type;
/* placeholder */
@property (nonatomic, copy) NSString *placeholder;
/* hiddenText */
@property (nonatomic, assign) BOOL hiddenText;

/* sendButton */
@property (nonatomic, strong) UIButton *sendButton;
/* fieldBlock */
@property (nonatomic, copy) HNSH_LoginInputFieldBlock fieldBlock;
/* buttonBlock */
@property (nonatomic, copy) HNSH_LoginInputButtonBlock buttonBlock;

@end

NS_ASSUME_NONNULL_END
